package org.finesys.system.api.tenant;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.finesys.common.mp.core.base.BaseEntity;

/**
 * 租户部门表实体bean
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_tenant_dept")
public class SysTenantDept extends BaseEntity {

    // 部门ID
    @TableId(value = "dept_id", type = IdType.ASSIGN_ID)
    private Long deptId;

    // 租户ID
    private Long tenantId;

    // 部门编码
    private String deptCode;

    // 部门名称
    private String deptName;

    // 父级部门
    private Long parentId;

    // 排序
    private Integer sortOrder;

}
